package com.lq.JDBC.entity;

public class Teacher {
    private Integer id;
    private String username;

    public Teacher() {
    }

    public Teacher(Integer id, String name) {
        this.id = id;
        this.username = name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "id=" + id +
                ", name='" + username + '\'' +
                '}';
    }
}
